<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./../template.xhtml">

            <ui:define name="title">
                Winner Detail  Page
            </ui:define>
            <ui:define name="content">
                <h:form>
              
                    <p:panel id="panel2" header="Winner Detail">
                        <p:panelGrid>
                            <p:row>
                                <p:column>
                                    <h4 class="art-postheader">
                                        Winner ID :
                                    </h4>
                                </p:column>
                                <p:column>
                                    <h4 class="art-postheader">
                                        <h:outputText value="#{winnerController.selected.winnerID}" styleClass="art-blockcontent-body">
                                        </h:outputText>
                                    </h4>
                                </p:column>
                            </p:row>
                                  <p:row>
                                <p:column>
                                    <h4 class="art-postheader">
                                        Prize :
                                    </h4>
                                </p:column>
                                <p:column>
                                    <h4 class="art-postheader">
                                        <h:outputText value="#{winnerController.selected.price}" styleClass="art-blockcontent-body">
                                        </h:outputText>
                                    </h4>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h4 class="art-postheader">
                                        Winner's Name
                                    </h4>
                                </p:column>
                                <p:column>
                                    <h4 class="art-postheader">
                                        <h:outputText value="#{winnerController.selected.registration.userInfo.userName}" styleClass="art-blockcontent-body">
                                        </h:outputText>
                                    </h4>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h4 class="art-postheader">
                                        Winner's Address
                                    </h4>
                                </p:column>
                                <p:column>
                                    <h4 class="art-postheader">
                                        <h:outputText value="#{winnerController.selected.registration.userInfo.addressInfo}" styleClass="art-blockcontent-body">
                                        </h:outputText>
                                    </h4>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h4 class="art-postheader">
                                        Winner's Email
                                    </h4>
                                </p:column>
                                <p:column>
                                    <h4 class="art-postheader">
                                        <h:outputText value="#{winnerController.selected.registration.userInfo.email}" styleClass="art-blockcontent-body">
                                        </h:outputText>
                                    </h4>
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                    </p:panel>
                    <p:panel id="evnetPanel" header="Winner of Event ">
                        <p:panelGrid>
                            <p:row>
                                <p:column rowspan="5"><p:graphicImage value="/resources/css/images/#{winnerController.selected.registration.eventInfo.imageEvent}" height="200" width="150"/></p:column>
                            </p:row>
                            <p:row>
                                <p:column colspan="2"><h3 class="art-postheader"> <p align="right"> <h:outputText value="#{winnerController.selected.registration.eventInfo.eventName}" style="font-weight: bolder;"/></p></h3></p:column>
                            </p:row>
                            <p:row>
                                <p:column colspan="2">
                                    <h4 class="art-postheader">
                                        <p align="right">
                                            <h:outputText value="#{winnerController.selected.registration.eventInfo.eventTitle}" style="font-weight: bold;word-break:break-all;" />
                                        </p>
                                    </h4>

                                    <h5>
                                        <h:outputText value="#{winnerController.selected.registration.eventInfo.descriptionEvent}" style="word-break:break-all;" />

                                    </h5>

                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h4 class="art-postheader">
                                        Start Event :<h:outputText value="#{winnerController.selected.registration.eventInfo.startEvent}" styleClass="art-blockcontent-body">
                                            <f:convertDateTime pattern="MM/dd/yyyy" />

                                        </h:outputText>
                                    </h4>

                                </p:column>
                                <p:column>
                                    <h4 class="art-postheader">
                                        End Event :  <h:outputText value="#{winnerController.selected.registration.eventInfo.finishEvent}" styleClass="art-blockcontent-body">
                                            <f:convertDateTime pattern="MM/dd/yyyy" />
                                        </h:outputText>
                                    </h4>
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                    </p:panel>
                  
                        <p:panelGrid>
                            <p:row>
<!--                          <p:column>
                                    <p:commandButton image="ui-icon ui-icon-pencil" action="#{winnerController.prepareEditInView}" value="Edit" ajax="false"/>
                                </p:column>
-->
                                <p:column>
                                    <p:commandButton immediate="true" ajax="false"  value="Back To Winner Page" action="ViewListWinner" id="btnCancel"/>
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                 
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>
